package com.sebastian.studies.ch10_10_2;

public class Rectangle extends GeometricObject {

	private double width;
	private double height;

	public Rectangle() {
	}

	public Rectangle(double wid, double hei) {
		this.width = wid;
		this.height = hei;
	}

	public double getWidth() {
		return width;
	}

	public void setWidth(double width) {
		this.width = width;
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	public double getArea() {
		return height * width;
	}

	public double getPerimeter() {
		return 2 * (width + height);
	}

}
